<?php

namespace AdminModule\Models;

/**
 * Description of Manufacturer
 *
 * @author David
 */
class Manufacturer extends \Nette\Database\Table\Selection {
    public function __construct(\Nette\Database\Connection $connection) {
        parent::__construct('manufacturers', $connection);
    }
    
    public function getSelectOptions() {
        return $this->order('title')->fetchPairs('id_manufacturer', 'title');
    }
}
